package com.hunan.api.catv.entity.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 会员关联openid
 * </p>
 *
 * @author wangchao
 * @since 2020-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_openid_info")
public class MemberOpenidInfo extends Model<MemberOpenidInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员id
     */
    private Integer memberId;

    /**
     * 会员类型
     */
    private String memberThirdType;

    /**
     * 对外提供给第三方openid
     */
    private String memberOpenId;

    /**
     * 状态 0:禁用 1:正常
     */
    private Integer status;

    /**
     * 逻辑删除 0:已删除  1:未删除
     */
    private Integer deleted;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 第三方提供给内部的openid
     */
    private String memberThirdOpenId;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String MEMBER_THIRD_TYPE = "member_third_type";

    public static final String MEMBER_OPEN_ID = "member_open_id";

    public static final String STATUS = "status";

    public static final String DELETED = "deleted";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String MEMBER_THIRD_OPEN_ID = "member_third_open_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
